/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbCloud			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_09			*/
/*	File:		MrTime.h			*/
/********************************************************/

#ifndef _MRTIME_H
#define	_MRTIME_H

#include "MrGlobal.h"
#include <sys/time.h>
#include <time.h>

class CMrTime
{
public:
	CMrTime();
	virtual ~CMrTime();

	void MrTimeOn();
	void MrTimeOff();
	void* MrTimeGetOn();
	void* MrTimeGetOff();
	void MrTimeDisplay();
	void MrTimeDisplayOnNumber();
	void MrTimeDisplayOnString();
	void MrTimeDisplayOffNumber();
	void MrTimeDisplayOffString();

private:
	struct timeval m_stOn;
	struct timeval m_stOff;

};

#endif /* _MRTIME_H */
